cmake_minimum_required(VERSION 3.16)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32_project)

# 主模块CMakeLists.txt
# 定义主程序模块的编译配置

idf_component_register(
    SRCS 
        "app_main.c"
        "user_gpio.c"
        "user_wifi.c"
        "user_mqtt.c"
    INCLUDE_DIRS 
        "."
    REQUIRES 
        nvs_flash
        esp_wifi
        protocol_examples_common
        mqtt
        log
        driver
        utils
        driver_dht11
)